const jwt = require('jsonwebtoken')

function make (info) {
  const token = 'Bearer ' + jwt.sign(info, 'leazerfspacejwt20220503',
    {
      expiresIn: 3600 * 24 * 7 // 7天
    }
  )
  return token
}

module.exports = {
  make: make
}